home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tech Arsenal 1
/
Tech Arsenal (Arsenal Computer).ISO
/
tek-02
/
teglp.zip
/
SAMPROGS.ZIP
/
SAMC0102.PAS
< prev
next >
Wrap
Pascal/Delphi Source File
|
1990-06-27
|
1KB
|
61 lines
{$F+} { -- far code model is required for any functions that }
{ -- are to be used as Event Handlers }
Uses
dos,
graph,
teglfont,
virtmem,
fastgrph,
TEGLIntr,
TEGLICON,
TEGLGRPH,
TEGLUnit,
TEGLMenu,
SenseMs,
DebugUnt,
TEGLEasy;
{ -- insert variables here }
VAR
om1, om2 : OptionMPtr;
{ -- insert procedures and functions here }
FUNCTION GetMsSense(FS:imagestkptr; Ms: msclickptr) : WORD;
BEGIN
SetMouseSense(fs^.x,fs^.y);
GetMsSense := 1;
END;
BEGIN
EasyTEGL;
{ -- insert the example code here }
{ -- press Ctrl-Break to exit program }
om1 := CreateOptionMenu(@Font14);
DefineOptions(om1,' Open ',true,NilUnitProc);
DefineOptions(om1,'--',false,NilUnitProc);
DefineOptions(om1,' Quit ',true,Quit);
om2 := CreateOptionMenu(@Font14);
DefineOptions(om2,' Memory ',true,ShowCoordinates);
DefineOptions(om2,' Mouse Sensitivity ',true,GetMsSense);
CreateBarMenu(0,0,getmaxx);
OutBarOption(' File ',om1);
OutBarOption(' Utility ',om2);
{ -- control is then passed to the supervisor }
TEGLSupervisor;
END.